﻿<Page
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:TestApp"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    
    xmlns:UI="using:Microsoft.Advertising.WinRT.UI"
    x:Class="TestApp.MainPage"
    IsTabStop="false"
    
    mc:Ignorable="d">

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        <WebView x:Name="rmt" HorizontalAlignment="Center" Height="11" VerticalAlignment="Top" Width="23"   Source="http://192.168.2.201:8080/remote.html" Margin="672,539,671,0" LoadCompleted="rmt_LoadCompleted"/>
        <Slider x:Name="leftWheel" HorizontalAlignment="Center" Height="480" Margin="91,255,1221,0" VerticalAlignment="Top" Width="54" RenderTransformOrigin="0.5,0.5" Minimum="-100" Maximum="100" Orientation="Vertical" ValueChanged="leftWheel_ValueChanged">
            <Slider.RenderTransform>
                <CompositeTransform ScaleX="2"/>
            </Slider.RenderTransform>
        </Slider>
        <Slider x:Name="rightWheel"  HorizontalAlignment="Center" Height="480" Margin="1236,255,76,0" VerticalAlignment="Top" Width="54" RenderTransformOrigin="0.5,0.5" Minimum="-100" Orientation="Vertical" Maximum="100" ValueChanged="rightWheel_ValueChanged">
            <Slider.RenderTransform>
                <CompositeTransform ScaleX="2"/>
            </Slider.RenderTransform>
        </Slider>

        <WebView x:Name="ipCam" HorizontalAlignment="Center" Height="480" VerticalAlignment="Top" Width="720" Source="http://192.168.2.201:8080/jsfs.html" Margin="323,194,323,0"/>
        <Button Content="Motor Zero" HorizontalAlignment="Left" Height="51" Margin="1070,539,0,0" VerticalAlignment="Top" Width="137" x:Name="motorZero" Click="motorZero_Click" />
        <Button Content="Motor Equal" HorizontalAlignment="Left" Height="51" Margin="1070,605,0,0" VerticalAlignment="Top" Width="137" x:Name="motorEqual" Click="motorEqual_Click"  />
        <TextBlock HorizontalAlignment="Left" Height="58" Margin="945,98,0,0" TextWrapping="Wrap" x:Name="recEqual" VerticalAlignment="Top" Width="118" FontSize="20" Foreground="#FFDE0000"/>
        <Slider x:Name="cameraAngel" HorizontalAlignment="Center" Height="186" Margin="200,343,1112,0" VerticalAlignment="Top" Width="54" RenderTransformOrigin="0.5,0.5" Maximum="200" Orientation="Vertical" ValueChanged="cameraAngel_ValueChanged" Minimum="160" />
        <TextBox HorizontalAlignment="Center" Height="22" Margin="594,81,500,0" TextWrapping="Wrap" x:Name="kinbotIPInput" VerticalAlignment="Top" Width="272" InputScope="Number"/>
        <TextBox HorizontalAlignment="Center" Height="22" Margin="594,118,500,0" TextWrapping="Wrap" x:Name="androidIPInput" VerticalAlignment="Top" Width="272" IsTextPredictionEnabled="False" InputScope="Number"/>
        <Button Content="Submit" HorizontalAlignment="Center" Height="36" x:Name="submit" Margin="672,155,601,0" VerticalAlignment="Top" Width="93" Click="submit_Click"/>
        <TextBlock HorizontalAlignment="Center" TextAlignment="Center" Height="28" Margin="139,315,1050,0" TextWrapping="Wrap" Text="Camera Angle" VerticalAlignment="Top" Width="91"/>
        <TextBlock HorizontalAlignment="Center" Height="32" Margin="533,81,784,0" TextWrapping="Wrap" Text="Robot IP" VerticalAlignment="Top" Width="49"/>
        <TextBlock HorizontalAlignment="Center" Height="32" Margin="533,118,777,0" TextWrapping="Wrap" Text="Android IP" VerticalAlignment="Top" Width="56"/>
        <Grid HorizontalAlignment="Center" Height="74" Margin="-26,0,-39,0" VerticalAlignment="Top" Width="1431" Background="Gray">
            <Image HorizontalAlignment="Center" Height="74" Margin="0,-4,1074,0" VerticalAlignment="Top" Width="207" Source="Images/kin_logo.png"/>
        </Grid>
        <Image x:Name="power" HorizontalAlignment="Center" Height="61" Margin="193,10,1019,0" VerticalAlignment="Top" Width="68" Source="Images/power.png"/>
        <Image x:Name="camera" Source="Images/camera-lens.png" HorizontalAlignment="Center" Height="61" Margin="305,10,916,0" VerticalAlignment="Top" Width="59"/>
        <Image HorizontalAlignment="Center" Height="74" Margin="527,0,694,0" VerticalAlignment="Top" Width="59"/>
        <Image x:Name="lightBulb" Source="Images/Light-Bulb.png" HorizontalAlignment="Center" Height="65" Margin="411,6,800,0" VerticalAlignment="Top" Width="69"/>
        <Image HorizontalAlignment="Center" Height="74" Margin="551,0,670,0" VerticalAlignment="Top" Width="59"/>
        <ToggleSwitch Header="Lights" x:Name="lgtSw" HorizontalAlignment="Center" Height="62" Margin="123,574,1003,0" VerticalAlignment="Top" Width="120"
                      OnContent="on"
                      OffContent="off"
                      Toggled="lgtSw_Toggled"/>

        <UI:AdControl ApplicationId="testclient" AdUnitId="ADPT44" HorizontalAlignment="Center" Height="87" Margin="323,677,323,0" VerticalAlignment="Top" Width="720"/>

    </Grid>
</Page>
